import request from '@/utils/request'

// 查询漫画分类列表
export function listCaricatureCategory(query) {
  return request({
    url: '/pixiv/caricatureCategory/list',
    method: 'get',
    params: query
  })
}

// 查询漫画分类详细
export function getCaricatureCategory(id) {
  return request({
    url: '/pixiv/caricatureCategory/' + id,
    method: 'get'
  })
}

// 新增漫画分类
export function addCaricatureCategory(data) {
  return request({
    url: '/pixiv/caricatureCategory',
    method: 'post',
    data: data
  })
}

// 修改漫画分类
export function updateCaricatureCategory(data) {
  return request({
    url: '/pixiv/caricatureCategory',
    method: 'put',
    data: data
  })
}

// 删除漫画分类
export function delCaricatureCategory(id) {
  return request({
    url: '/pixiv/caricatureCategory/' + id,
    method: 'delete'
  })
}

export function listCaricatureCategoryAll() {
  return request({
    url: '/pixiv/caricatureCategory/queryList',
    method: 'get'
  })
}
